-
Notifications
You must be signed in to change notification settings - Fork 60
feat: ability to verify e2e STARK proof + CLI command #1689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ability to verify e2e STARK proof + CLI command #1689
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -322,6 +326,51 @@ impl<E: StarkFriEngine<SC>> GenericSdk<E> { | |||
Ok(proof) | |||
} | |||
|
|||
pub fn verify_e2e_stark_proof( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking
openvm/crates/vm/src/arch/vm.rs
Line 735 in 4da0af9
pub fn verify_segments<SC, E>( |
crates/sdk/src/lib.rs
Outdated
&self, | ||
agg_stark_pk: AggStarkProvingKey, | ||
proof: &VmStarkProof<SC>, | ||
) -> Result<[F; CHUNK]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return AppExecutionCommit
instead of just exe commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vm_commit
should be internal_committed_exe.get_program_commit()
? Or should I get the program commit from the root verifier program?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the program commit of leaf verifier or a public value of internal verifier. See here:
non_leaf_verifier.verify_internal_or_leaf_verifier_proofs(&mut builder, &proofs); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: e7c6611 |
Resolves INT-4074. Primarily accomplishes the following: - `cargo openvm prove` outputs proofs to `${bin_name}.app.proof` instead of `app.proof`, where `bin_name` is the file stem of the executable (same for `stark` and `evm`) - `cargo openvm verify` by default searches the working directory for files with extension `.app.proof` Additionally, the following are also in this PR: - `cargo openvm init ${dir}` creates directory `dir` if it doesn't already exist - Updates to the book to reflect recent CLI changes The following were merged from #1689: - SDK functionality to verify e2e STARK proofs - `cargo openvm verify stark` subcommand
Resolves INT-4064